{% extends 'base.html' %}

{% block title %} {{ repo.name.value }} {% endblock %}

{% block content %}

<h3> 
	{% if editable %}
		Edit
	{% elif deletable %}
		Delete
	{% else  %}	
	    View
	{% endif %}
	Repository
</h3>

{% if editable %}
	<form method='post'> {% csrf_token %}
{% elif deletable %}
	<form method='post'> {% csrf_token %}	
{% endif %}
<fieldset name="repo">

{{ repo.as_p }}

</fieldset>

{% if editable %}
	<input type='submit' value='Save'>
	</form>
{% elif deletable %}
	<input type='submit' value='Delete'>
	</form>
{% endif %}
	<form action='/repositorys/' method="get">
    <input type="submit" value="Back" />

{% include 'revisions.html' with tid='-1' %}
{% endblock %}